<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		var arr1=[1,3,'hello',true,'jack']
		function reverseArr(arr){
			                     arr2=[]
			                     for(var i=arr.length-1;i>=0;i--){
			                     	arr2.push(arr[i])

			}
			console.log(arr2)
		}
		reverseArr(arr1)
	</script>
</head>
<body>
	
</body>
</html>